home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / ggraph / Makefile.orig < prev    next >
Makefile  |  1986-11-24  |  3KB  |  106 lines

  1. .IGNORE:
  2. .ONESHELL:
  3. CFLAGS=-f68881 -O
  4.  
  5. OBJS=ggraph.o commands.o points.o axis.o symbols.o ggraphdata.o hist.o \
  6. set.o legend.o
  7.  
  8. CFILES=ggraph.c commands.c points.c axis.c symbols.c ggraphdata.c hist.c \
  9. set.c legend.c
  10.  
  11. ggraph: ${OBJS}
  12.     cc ${OBJS} -f68881 -lm -o ggraph
  13.  
  14. doc: ggraph.ms graph1
  15.     grn -Pip ggraph.ms|ditroff -ms -Pip
  16.  
  17. list: ggraph.h commands.h ggraphstructs.h ggraphdefs.h \
  18.     ggraph.c commands.c points.c axis.c \
  19.     symbols.c ggraphdata.c hist.c set.c legend.c
  20.     lpr -P2 $*
  21.  
  22. clean: 
  23.     rm -f *.o core make.out errs ggraph
  24.  
  25. tags:   $(CFILES)
  26.     ctags $(CFILES)
  27.  
  28. depend:
  29.     cp /dev/null x.c
  30.     for i in $(CFILES) ; do \
  31.         (/bin/grep '^#[         ]*include' x.c $$i | sed \
  32.             -e '/\.\.\//d' \
  33.             -e 's,<\(.*\)>,"/usr/include/\1",' \
  34.             -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
  35.             -e 's/\.c/\.o/' >>makedep); done
  36.     echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
  37.     echo '$$r makedep' >>eddep
  38.     echo 'w' >>eddep
  39.     cp Makefile Makefile.bak
  40.     ed - Makefile < eddep
  41.     rm eddep makedep x.c
  42.     echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
  43.     echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
  44.     echo '# see make depend above' >> Makefile
  45.  
  46. # DO NOT DELETE THIS LINE -- make depend uses it
  47. # DEPENDENCIES MUST END AT END OF FILE
  48. ggraph.o: /usr/include/stdio.h
  49. ggraph.o: /usr/include/errno.h
  50. ggraph.o: /usr/include/strings.h
  51. ggraph.o: /usr/include/math.h
  52. ggraph.o: /usr/include/ctype.h
  53. ggraph.o: ggraph.h
  54. ggraph.o: ggraphdefs.h
  55. commands.o: /usr/include/stdio.h
  56. commands.o: /usr/include/errno.h
  57. commands.o: /usr/include/strings.h
  58. commands.o: /usr/include/math.h
  59. commands.o: /usr/include/ctype.h
  60. commands.o: ggraph.h
  61. commands.o: commands.h
  62. commands.o: ggraphdefs.h
  63. points.o: /usr/include/stdio.h
  64. points.o: /usr/include/errno.h
  65. points.o: /usr/include/strings.h
  66. points.o: /usr/include/math.h
  67. points.o: ggraph.h
  68. points.o: ggraphdefs.h
  69. axis.o: /usr/include/stdio.h
  70. axis.o: /usr/include/errno.h
  71. axis.o: /usr/include/strings.h
  72. axis.o: /usr/include/math.h
  73. axis.o: ggraph.h
  74. axis.o: ggraphdefs.h
  75. symbols.o: /usr/include/stdio.h
  76. symbols.o: /usr/include/errno.h
  77. symbols.o: /usr/include/strings.h
  78. symbols.o: /usr/include/math.h
  79. symbols.o: ggraph.h
  80. symbols.o: ggraphdefs.h
  81. ggraphdata.o: /usr/include/stdio.h
  82. ggraphdata.o: /usr/include/errno.h
  83. ggraphdata.o: ggraph.h
  84. ggraphdata.o: ggraphdefs.h
  85. hist.o: /usr/include/stdio.h
  86. hist.o: /usr/include/errno.h
  87. hist.o: /usr/include/strings.h
  88. hist.o: /usr/include/math.h
  89. hist.o: ggraph.h
  90. hist.o: ggraphdefs.h
  91. set.o: /usr/include/stdio.h
  92. set.o: /usr/include/errno.h
  93. set.o: /usr/include/strings.h
  94. set.o: /usr/include/math.h
  95. set.o: ggraph.h
  96. set.o: ggraphdefs.h
  97. legend.o: /usr/include/stdio.h
  98. legend.o: /usr/include/errno.h
  99. legend.o: /usr/include/strings.h
  100. legend.o: /usr/include/math.h
  101. legend.o: ggraph.h
  102. legend.o: ggraphdefs.h
  103. # DEPENDENCIES MUST END AT END OF FILE
  104. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  105. # see make depend above
  106.